home *** CD-ROM | disk | FTP | other *** search
- on checkSign
- global whichPlank, gMotorpath
- set whichPlank to the mouseV
- if (whichPlank > 42) and (whichPlank < 100) then
- put "Top" into field "whichPlank"
- end if
- if (whichPlank > 128) and (whichPlank < 174) then
- put "Driving Seat" into field "whichPlank"
- go(1, gMotorpath & "Support Files:Dashbrd:Dashbrd.dir")
- end if
- if (whichPlank > 189) and (whichPlank < 217) then
- put "Garage" into field "whichPlank"
- goTech()
- end if
- if (whichPlank > 237) and (whichPlank < 264) then
- puppetSound("Click")
- end if
- if (whichPlank > 287) and (whichPlank < 315) then
- put "Cars Exhibit" into field "whichPlank"
- go(1, gMotorpath & "Support Files:Dashbrd:Speedo.dir")
- end if
- if (whichPlank > 344) and (whichPlank < 364) then
- put "Exit" into field "whichPlank"
- go(1, gMotorpath & "Support Files:Credits.dir")
- end if
- end
-
- on goTech
- global techSwitch
- if techSwitch = 1 then
- go("rejoin", "Workshop.dir")
- else
- go(1, "Garage.dir")
- end if
- end
-
- on animate theCast, theClicks
- set whichSprite to the clickOn
- set whichCast to the castNum of sprite whichSprite
- set theFrames to whichCast + theCast
- repeat while whichCast < theFrames
- set the castNum of sprite whichSprite to whichCast
- updateStage()
- set whichCast to whichCast + 1
- theTempo(theClicks)
- end repeat
- set whichCast to theFrames - theCast
- set the castNum of sprite whichSprite to whichCast
- updateStage()
- end
-